
<?php

class LoginController extends Yaf_Controller_Abstract 
{

    public function init()
    {
        echo "init ... \n";
    }

    public function loginAction() 
    {  // User login method 
    
        /* $per = new Performance();
        $per->TimePerformance();

        $da = new CommonFunction();
        $da->getDate();

        Yaf_Loader::import(Yaf_Application::app()->getConfig()->application->directory . '/common/Service.php');  
        $os = new ServiceFunction();
        $os->getOS();

        printf("User Login"); */

        $dbconfig = Yaf_Registry::get("dbConfig");
        $database = $dbconfig->mysql;
        //var_dump($database->db->host) ;

        //$user = new User_BaseModel() ;
        //$user->getUserList() ;

       /*  $db = PDO_MysqlModel::getInstance($database);
        $row = $db->fetchAll('select * from user limit 0,1000');
        print_r($row);
        $db->close(); */

        $url="10.10.83.235:8005/dbpool?sql=";  
        $sql = "select * from user limit 0,1000";
        $data = file_get_contents($url.$sql);  
        echo $data ;

        return false ;
        
    }
}
